package com.baseLesson.reflect.mapperDemoClass;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;

import java.io.IOException;

public class MyMapper extends Mapper<LongWritable, Text,Text,Text>{


    /**
     *
     * @param key
     * @param value hadoop welcome hadoop
     * @throws IOException
     * @throws InterruptedException
     */
    @Override
    protected void map(LongWritable key, Text value) throws IOException, InterruptedException {
        String[] split = value.toString().split(" ");


        for (int i = 0; i < split.length; i++) {
            System.out.println("数据处理之后： "+split[i]);
        }

    }
}
